package com.ziqikeji.xianyan.common;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class DatagridDTO {
    private String msg;
    private int code;
    private long count;
    private List data;

    public DatagridDTO() {
    }

    public DatagridDTO(long count, List data) {
        this.count = count;
        this.data = data;
    }

    public DatagridDTO(String msg, long count, List data) {
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

    public DatagridDTO(String msg, int code, long count, List data) {
        this.msg = msg;
        this.code = code;
        this.count = count;
        this.data = data;
    }

    @JsonProperty("msg")
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @JsonProperty("code")
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @JsonProperty("count")
    public long getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @JsonProperty("data")
    public List getData() {
        return data;
    }

    public void setData(List data) {
        this.data = data;
    }
}
